package com.woniuxy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.woniuxy.dao.TrainrecordMapper;
import com.woniuxy.pojo.Trainrecord;
import com.woniuxy.service.TrainrecordService;

@Service
public class TrainrecordServiceImpl implements TrainrecordService{

	@Autowired
	private TrainrecordMapper trainrecordMapper;
	
	@Override
	public List<Trainrecord> getAllTrainrecord() {
		// TODO Auto-generated method stub
		return trainrecordMapper.getAllTrainrecord();
	}

	@Override
	public void addAvgIspass(Integer sid, Integer pid) {
		// TODO Auto-generated method stub
		trainrecordMapper.addAvgIspass(sid, pid);
	}

}
